<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Face Detection with Alignment: eHbbox.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Face Detection with Alignment
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">eHbbox.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Multi-box bounding box type and operations.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="eHbox_8h_source.html">eHbox.h</a>&quot;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
</div>
<p><a href="eHbbox_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeHbbox.html">eHbbox</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multi-box "bounding box", used for detection result.  <a href="structeHbbox.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ad7a8d677cb353b071929ad40b6b4a77a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#ad7a8d677cb353b071929ad40b6b4a77a">EH_BBOXS_PRUNE</a>&#160;&#160;&#160;30000</td></tr>
<tr class="memdesc:ad7a8d677cb353b071929ad40b6b4a77a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default pruning parameter for <a class="el" href="eHbbox_8h.html#af2c8d67fa2c5d15d379a95c2d25c906c" title="Non-maximum suppression. ">bbox_v_nms()</a>  <a href="#ad7a8d677cb353b071929ad40b6b4a77a">More...</a><br/></td></tr>
<tr class="separator:ad7a8d677cb353b071929ad40b6b4a77a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:abf0e2add76a0dd37cdac1cabc51c4812"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf0e2add76a0dd37cdac1cabc51c4812"></a>
typedef struct <a class="el" href="structeHbbox.html">eHbbox</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a></td></tr>
<tr class="memdesc:abf0e2add76a0dd37cdac1cabc51c4812"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multi-box "bounding box", used for detection result. <br/></td></tr>
<tr class="separator:abf0e2add76a0dd37cdac1cabc51c4812"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6bb65f6ddd89207febb00d93301ffc0d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6bb65f6ddd89207febb00d93301ffc0d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#a6bb65f6ddd89207febb00d93301ffc0d">bbox_calcOut</a> (<a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> *)</td></tr>
<tr class="memdesc:a6bb65f6ddd89207febb00d93301ffc0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Filling the fields of given bbox: outer, area. <br/></td></tr>
<tr class="separator:a6bb65f6ddd89207febb00d93301ffc0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab9986b2e6b74a6d3eb894888fcc165e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#aab9986b2e6b74a6d3eb894888fcc165e">bbox_clipboxes</a> (<a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &amp;bbox, const int *imsize)</td></tr>
<tr class="memdesc:aab9986b2e6b74a6d3eb894888fcc165e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clip the boxes to image boundary.  <a href="#aab9986b2e6b74a6d3eb894888fcc165e">More...</a><br/></td></tr>
<tr class="separator:aab9986b2e6b74a6d3eb894888fcc165e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae15251cf96f9ccf45e3287010157377f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#ae15251cf96f9ccf45e3287010157377f">bbox_v_resize</a> (std::vector&lt; <a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &gt; &amp;bboxes, double scale)</td></tr>
<tr class="memdesc:ae15251cf96f9ccf45e3287010157377f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resize the input bboxs (in-place)  <a href="#ae15251cf96f9ccf45e3287010157377f">More...</a><br/></td></tr>
<tr class="separator:ae15251cf96f9ccf45e3287010157377f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2147ef8bb9c913637975e31bc6ba103c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#a2147ef8bb9c913637975e31bc6ba103c">bbox_v_move</a> (std::vector&lt; <a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &gt; &amp;bboxes, const int *offset)</td></tr>
<tr class="memdesc:a2147ef8bb9c913637975e31bc6ba103c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move the input bboxs (in-place)  <a href="#a2147ef8bb9c913637975e31bc6ba103c">More...</a><br/></td></tr>
<tr class="separator:a2147ef8bb9c913637975e31bc6ba103c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2c8d67fa2c5d15d379a95c2d25c906c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="eHbbox_8h.html#af2c8d67fa2c5d15d379a95c2d25c906c">bbox_v_nms</a> (std::vector&lt; <a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &gt; &amp;bboxes, double overlap, unsigned prune=<a class="el" href="eHbbox_8h.html#ad7a8d677cb353b071929ad40b6b4a77a">EH_BBOXS_PRUNE</a>)</td></tr>
<tr class="memdesc:af2c8d67fa2c5d15d379a95c2d25c906c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-maximum suppression.  <a href="#af2c8d67fa2c5d15d379a95c2d25c906c">More...</a><br/></td></tr>
<tr class="separator:af2c8d67fa2c5d15d379a95c2d25c906c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Multi-box bounding box type and operations. </p>
<p>A "bounding box" is defined as a collection of boxes, which serve as detection results of different parts for part-based detection algorithms.</p>
<dl class="section author"><dt>Author</dt><dd>Hang Su </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2012-08-13 </dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ad7a8d677cb353b071929ad40b6b4a77a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define EH_BBOXS_PRUNE&#160;&#160;&#160;30000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default pruning parameter for <a class="el" href="eHbbox_8h.html#af2c8d67fa2c5d15d379a95c2d25c906c" title="Non-maximum suppression. ">bbox_v_nms()</a> </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="eHbbox_8h.html#af2c8d67fa2c5d15d379a95c2d25c906c" title="Non-maximum suppression. ">bbox_v_nms()</a> </dd></dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aab9986b2e6b74a6d3eb894888fcc165e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bbox_clipboxes </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &amp;&#160;</td>
          <td class="paramname"><em>bbox</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>imsize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clip the boxes to image boundary. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">imsize</td><td>imsize[0]=height, imsize[1]=width </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="eHbox_8h.html#a33ec0cbec476f897c0f2849e8521051c" title="Clip box so it&#39;s limited by the image size. ">fbox_clip()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2147ef8bb9c913637975e31bc6ba103c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bbox_v_move </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>bboxes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Move the input bboxs (in-place) </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="eHbox_8h.html#a94dc7dceaa7ee714b1bd99b30f64a8c5" title="Move the position of input box by given offset. ">fbox_move()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af2c8d67fa2c5d15d379a95c2d25c906c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bbox_v_nms </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>bboxes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>overlap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>prune</em> = <code><a class="el" href="eHbbox_8h.html#ad7a8d677cb353b071929ad40b6b4a77a">EH_BBOXS_PRUNE</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Non-maximum suppression. </p>
<p>Greedily select high-scoring detections and skip detections that are significantly coverd by a previously selected detection.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bboxes</td><td>an array of detection results, changed inside function </td></tr>
    <tr><td class="paramname">overlap</td><td>two results are not both kept if their overlap ratio exceed this value </td></tr>
    <tr><td class="paramname">prune</td><td>initial bboxes are pruned for higher speed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae15251cf96f9ccf45e3287010157377f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void bbox_v_resize </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="eHbbox_8h.html#abf0e2add76a0dd37cdac1cabc51c4812">bbox_t</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>bboxes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resize the input bboxs (in-place) </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="eHbox_8h.html#a82abeb82bb9e51fc50bdd70dffe3b7e7" title="Resize the input box. ">fbox_resize()</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon May 26 2014 22:18:57 for Face Detection with Alignment by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
